﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="GetSlide.ascx.cs" Inherits="NLLSite.UserControl.GetSlide" %>

<asp:LinqDataSource ID="LinqDataSource1" runat="server" 
    ContextTypeName="DAL_Class.NLLDataContext" 
    Select="new (ID, Description, ThumbImage, SlideImage, Status, Link)" 
    TableName="SLIDEs" Where="Status == @Status" OrderBy="Description">
    <WhereParameters>
        <asp:Parameter DefaultValue="True" Name="Status" Type="Boolean" />
    </WhereParameters>
</asp:LinqDataSource>
<asp:ListView ID="ListView1" runat="server" DataSourceID="LinqDataSource1" 
    EnableModelValidation="True">
   
    
   
    
   
    
    <EmptyDataTemplate>
        <span>No data was returned.</span>
        
    </EmptyDataTemplate>
    
    
    
    
    <ItemTemplate>
    <li class="ui-tabs-nav-item ui-tabs-selected" id="nav-fragment-<%# Eval("ID") %>"><a href="#fragment-<%# Eval("ID") %>"><img src="<%# Eval("ThumbImage") %>" /><span><%# Eval("Description") %></span></a></li>
        <%--<span style="">ID:
        <asp:Label ID="IDLabel" runat="server" Text='<%# Eval("ID") %>' />
        <br />
        Description:
        <asp:Label ID="DescriptionLabel" runat="server" 
            Text='<%# Eval("Description") %>' />
        <br />
        ThumbImage:
        <asp:Label ID="ThumbImageLabel" runat="server" 
            Text='<%# Eval("ThumbImage") %>' />
        <br />
        SlideImage:
        <asp:Label ID="SlideImageLabel" runat="server" 
            Text='<%# Eval("SlideImage") %>' />
        <br />
        <asp:CheckBox ID="StatusCheckBox" runat="server" 
            Checked='<%# Eval("Status") %>' Enabled="false" Text="Status" />
        <br />
        Link:
        <asp:Label ID="LinkLabel" runat="server" Text='<%# Eval("Link") %>' />
        <br />
        <br />
        </span>--%>
    </ItemTemplate>
    <LayoutTemplate>
        <div style="" ID="itemPlaceholderContainer" runat="server">
            <span runat="server" id="itemPlaceholder" />
        </div>
        <div style="">
            <asp:DataPager ID="DataPager1" runat="server" PageSize="3">
               <%-- <Fields>
                    <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" 
                        ShowLastPageButton="True" />
                </Fields>--%>
            </asp:DataPager>
        </div>
    </LayoutTemplate>
    
    
    
</asp:ListView>
